<h1><%= title "Cultures" %></h1>

<table>
  <tr>
    <th>Name</th>
	<th>Kingdoms</th>
  </tr>

<% for culture in @cultures %>
  <tr>
    <td><%=h culture.name %></td>
	<td>
		<% for kingdom in culture.kingdoms %>
		<%= link_to_record kingdom %><br/>
		<% end %>
	</td>
    <td><%= link_to 'Show', culture %></td>
    <td><%= link_to 'Edit', edit_culture_path(culture) %></td>
    <td><%= link_to 'Destroy', culture, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New culture', new_culture_path %> | <%= link_to 'Home', '/' %>
